package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        //文件流(字节流，低级流)
        FileInputStream fis =new FileInputStream("pw.txt");
        //转换流(字符流，高级流)
        InputStreamReader isr=new InputStreamReader(fis, StandardCharsets.UTF_8);
        //缓冲字符流(字符流，高级流)
        BufferedReader br=new BufferedReader(isr);

        String ling;
        while ((ling=br.readLine())!=null){
            System.out.println(ling);

        }
        br.close();
    }
}
